#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Time    : 2023/3/10 9:30
# @Author  : WuJunQi
# @Email   : 1479652129@qq.com
# @File    : Detect_Change_System.py
# @Software: PyCharm
import threading
import time


class Detect_Change_System():
    def __init__(self,Window):
        self.switch = True
        self.window = Window


    def newstart(self):
        mythread = threading.Thread(target=self.Monitor_threads)
        mythread.start()
    def Monitor_threads(self):
        print(str(self.window.detectPeople.want_to_cross_id[self.window.detectPeople.frame-1]))
        self.window.want_num.setText(str(self.window.detectPeople.want_to_cross_id[self.window.detectPeople.frame-1]))
        self.window.waitframes.setText(str(self.window.detectPeople.frame))
        time.sleep(0.010)